﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Character.aspx.cs" Inherits="_2011DBProject.Character" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel=StyleSheet HREF='design1.css' type='text/css'>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>새벽 골프</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p align =left>
        <asp:Button ID="btnGoLogout" runat="server" onclick="btnGoLogout_onclick" 
            Text="☜ 로 그 아 웃" Width="150px" />
        <asp:Button ID="btnGoServer" runat="server" onclick="btnGoServer_onclick" 
            Text="☜ 서 버 선 택" Width="150px" />
        </p>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="SERVER_NO" 
            DataSourceID="SqlDataSource3" Visible="False" Height="31px">

       <Itemtemplate>
                <asp:Label ID="lblDLServer" runat="server" Text='<%# Eval("SERVER_NAME") %>' />
                </ItemTemplate>
        </asp:DataList>
        <br />

        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT &quot;SERVER_NO&quot;, &quot;SERVER_NAME&quot; FROM &quot;SERVER&quot; WHERE (&quot;SERVER_NO&quot; = :SERVER_NO)">
            <SelectParameters>
                <asp:SessionParameter Name="SERVER_NO" SessionField="SERVER" Type="Decimal" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <asp:Label ID="lblAccount" runat="server" Font-Bold="True" Font-Size="Large" 
            ForeColor="#FFFF99" Text="이름없음"></asp:Label>
&nbsp;님!<asp:Label ID="lblServer" runat="server" Font-Bold="True" Font-Size="Large" 
            ForeColor="#FFFF99" Text="서버선택안됨"></asp:Label>&nbsp;서버에 접속하셨습니다.<br />
        <br />
        <br />
        <center>
        <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" 
                style="margin-top: 0px" RepeatColumns=3>
            <HeaderTemplate><table><tr></HeaderTemplate>
            <ItemTemplate>
            <td>
            <br />
            &nbsp;<asp:ImageButton ID="ImageButton1" runat="server" 
                    CommandArgument='<%# Eval("CHARACTER_NAME") %>' Width="200" Height="270px" 
                    ImageUrl='<%# "image/"+Eval("MODEL_ID")+".png" %>' 
                    oncommand="ImageButton1_Command" />
            <br />
            <br />
                <asp:Label ID="CHARACTER_NAMELabel" runat="server" 
                    Text='<%# Eval("CHARACTER_NAME") %>' Font-Bold="True" Font-Size="30pt" />
                <br />
                LEVEL :
                <asp:Label ID="LVLLabel" runat="server" Text='<%# Eval("LVL") %>' />
                <br />
                E X P :
                <asp:Label ID="EXP_TO_NEXT_LEVELLabel" runat="server" 
                    Text='<%# Eval("EXP_TO_NEXT_LEVEL") %>' /> %
                <br />
                MODEL :
                <asp:Label ID="MODEL_IDLabel" runat="server" Text='<%# Eval("MODEL_ID") %>' />
                <br />
                <br />
                <asp:Button ID="Button3" runat="server" oncommand="Button3_Command" 
                    Text="캐릭터 삭제" Width="123px" 
                    CommandArgument='<%# Eval("CHARACTER_NAME") %>' />
                <br />
                </td>
                &nbsp;
            </ItemTemplate>
            <FooterTemplate></tr></table></FooterTemplate>
        </asp:DataList>
        </center>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT &quot;CHARACTER_NAME&quot;, &quot;LVL&quot;, &quot;EXP_TO_NEXT_LEVEL&quot;, &quot;MODEL_ID&quot;, &quot;ACCOUNT_ID&quot;, &quot;SERVER_NO&quot; FROM &quot;V_SIMPLECHARACTER&quot; WHERE ((&quot;ACCOUNT_ID&quot; = :ACCOUNT_ID) AND (&quot;SERVER_NO&quot; = :SERVER_NO) AND (&quot;TITLE_NO&quot; &lt;&gt; :TITLE_NO))">
            <SelectParameters>
                <asp:SessionParameter Name="ACCOUNT_ID" SessionField="USER" Type="String" />
                <asp:SessionParameter Name="SERVER_NO" SessionField="SERVER" Type="Decimal" />
                <asp:Parameter DefaultValue="9" Name="TITLE_NO" Type="Decimal" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:Label ID="lblHl1" runat="server" Font-Bold="True" ForeColor="#FF5050" 
            Text="캐릭터가 삭제되면 해당 캐릭터의 아이템, 엔지 등 모든 정보가 삭제되며 복구할 수 없습니다." Visible="False"></asp:Label>
        <br />
        <asp:Label ID="lblHl2" runat="server" Font-Bold="True" ForeColor="#FF5050" 
            Text="삭제하기 위해 &quot;지금삭제&quot;를 타이핑해주세요." Visible="False"></asp:Label>
        <br />
        <asp:TextBox ID="txtHt" runat="server" Visible="False"></asp:TextBox>
        <asp:Button ID="btnHb" runat="server" onclick="btnHb_Click" 
            style="height: 26px" Text="삭제" Visible="False" Width="46px" />
        <asp:Label ID="lbltmp" runat="server" Text="Label" Visible="False"></asp:Label>
        <br />
        <br />
        &nbsp;<asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
            Text="캐릭터 생성" Width="164px" />
        <br />
        <br />
        <asp:Button ID="btnLockerRoom" runat="server" onclick="btnLockerRoom_Click" 
            Text="라커룸" />
        <br />
        <br />
        <br />
    
        <br />
    
    </div>
    </form>
</body>
</html>
